import { createBrowserRouter } from "react-router-dom";
import Bot from "@/pages/Bot/Bot";
import Fei from "@/pages/Fei/Fei";
import Home from "../pages/Home/Home.js";
import Huod from "../pages/Huod/Huod";
import Kec from "../pages/Kec/Kec";
import Login from "../pages/Login/Login";
import Shang from "../pages/Shang/Shang";
import Shua from "../pages/Shua/Shua";
import Zhibo from "../pages/Zhibo/Zhibo";
import Layouts from "../Layouts/Layouts.jsx";
import Detail from "@/pages/Detail/Detail.js";

export const routerlist=[
    {
        path:'/home',
        element:<Home />,
        meta:{title:'首页'}
    },
    {
        path:'/bot',
        element:<Bot />,
        meta:{title:'波特'}
    },
    {
        path:'/fei',
        element:<Fei />,
        meta:{title:'沸点'}
    },
    {
        path:'/kec',
        element:<Kec />,
        meta:{title:'课程'}
    },
    {
        path:'/zhibo',
        element:<Zhibo />,
        meta:{title:'直播'}
    },
    {
        path:'/huod',
        element:<Huod />,
        meta:{title:'活动'}
    },
    {
        path:'/shua',
        element:<Shua />,
        meta:{title:'AI刷题'}
    },
    {
        path:'/shang',
        element:<Shang />,
        meta:{title:'商城'}
    },
]
  
const router=createBrowserRouter([
    {
        path:'/',
        element:<Layouts />,
        children:routerlist
    },
    {
        path:'/login',
        element:<Login />,
    
    },
    {
        path:'/detail/:id',
        element:<Detail />,
    
    }
])

export default router;